package com.zhaowei.allinpay.order;

import com.zhaowei.allinpay.DemoUtils;
import com.zhaowei.allinpay.IDemoHandler;
import org.json.JSONArray;
import org.json.JSONObject;

public class RefundHandler implements IDemoHandler {
    @Override
    public JSONObject getRequestParams() throws Exception {

        String bizOrderNo = System.currentTimeMillis() + "tk";

        JSONObject refund1 = new JSONObject();
        refund1.put("bizUserId", "zhanxh");
        refund1.put("amount", 1);

        JSONArray refundList = new JSONArray();
        refundList.put(refund1);

        JSONObject param = new JSONObject();
        param.put("bizOrderNo", bizOrderNo);
        param.put("oriBizOrderNo", "1531190604552xf");
        param.put("bizUserId", "zhanxh");
//        param.put("refundList", refundList);
//        param.put("backUrl", );
        param.put("amount", 1);
        param.put("couponAmount", 0);
        param.put("feeAmount", 0);
        param.put("extendInfo", "");

        return param;
    }
}
